package com;

import java.util.List;

import redis.clients.jedis.Jedis;

public class TestList {
	public static void main(String[] args) {
		Jedis jedis = new Jedis("n1");
		try {
			hashTest(jedis);
		} catch (Exception e) {
			e.printStackTrace();
		} finally{
			jedis.close();
		}
	}
	private static void hashTest(Jedis jedis) {
		jedis.lpush("value2", "aaa", "bbb", "ccc");
		
		List<String> lrange = jedis.lrange("value2", 0, 3);
		lrange.forEach(str -> {
			System.out.println(str);
		});
	}
}
